package br.com.salaodebeleza.domain;
// Generated Jul 23, 2013 3:24:07 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * TbAgenda generated by hbm2java
 */
@Entity
@Table(name="tb_calcularservicos" ,schema="public")
public class TbCalcularServicos  implements java.io.Serializable {


     private long id;
     private TbCliente tbCliente;
     private TbServicos tbServico;
     private TbFuncionario tbFuncionario;
     private Date dtAgendamento;

    public TbCalcularServicos() {
    }

    public TbCalcularServicos(long id, TbCliente tbCliente, TbServicos tbServico, TbFuncionario tbFuncionario,
    		Date dtAgendamento) {
       this.id = id;
       this.tbCliente = tbCliente;
       this.tbServico = tbServico;
       this.tbFuncionario = tbFuncionario;
       this.dtAgendamento = dtAgendamento;
    }
   
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="id", unique = true, nullable = false, precision = 22, scale = 0)
    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }

    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_cliente", nullable = false)
    public TbCliente getTbCliente() {
        return this.tbCliente;
    }
    
    public void setTbCliente(TbCliente tbCliente) {
        this.tbCliente = tbCliente;
    }

    @ManyToOne(fetch = FetchType.LAZY)
   	@JoinColumn(name = "id_funcionario", nullable = false)
    public TbFuncionario getTbFuncionario() {
		return tbFuncionario;
	}

	public void setTbFuncionario(TbFuncionario tbFuncionario) {
		this.tbFuncionario = tbFuncionario;
	}

	@ManyToOne(fetch = FetchType.LAZY)
   	@JoinColumn(name = "id_servico", nullable = false)
    public TbServicos getTbServico() {
        return this.tbServico;
    }
    
    public void setTbServico(TbServicos tbServico) {
        this.tbServico = tbServico;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="dt_agendamento", nullable = true, length=10)
    public Date getDtAgendamento() {
        return this.dtAgendamento;
    }
    
    public void setDtAgendamento(Date dtAgendamento) {
        this.dtAgendamento = dtAgendamento;
    }
    
}


